<?php 
namespace app\home\model;
use think\Model;

class NewsClassify extends Model
{
	public function sellev1()
	{
		return $this->where('level',1)->select();
	}
	public function sellev2()
	{
		return $this->where('level',2)->select();
	}
	public function sel1($id)
	{
		return $this->field('id')->where('parentid',$id)->select();
	}
	public function selid($id)
	{
		return $this->field('name')->where('id',$id)->select();
	}
}